﻿function SelectNav(index) {
    $("#mainnav li").removeClass("active");
    $("#mainnav li")[index].className = "active";
}

function OnProjectEdit(infoDiv) {
    var lables = infoDiv.getElementsByTagName("span");
    document.getElementById("projectId").innerHTML = lables[0].innerHTML;
    document.getElementById("projectName").innerHTML = lables[2].innerHTML;
    document.getElementById("hardwareInfo").value = lables[3].innerHTML;
    document.getElementById("softwareInfo").value = lables[4].innerHTML;
    document.getElementById("pidHidden").value = lables[0].innerHTML;
}

function OnBranchAdd(projName) {
    document.getElementById("beloneProjName").value = projName;
}

function OnDelete(type,name) {
    document.getElementById("delType").value = type;
    document.getElementById("delName").value = name;
 }